
add_library(sqlite_lib ${PROJECT_SOURCE_DIR}/src/sqlite/sqlite3.c)
target_include_directories(sqlite_lib PRIVATE ${PROJECT_SOURCE_DIR}/include/sqlite)

add_executable(sqlite ${PROJECT_SOURCE_DIR}/src/sqlite/shell.c)
target_include_directories(sqlite PRIVATE ${PROJECT_SOURCE_DIR}/include/sqlite)
target_link_libraries(sqlite PRIVATE sqlite_lib)
if (TARGET_PLATFORM STREQUAL "linux")
    target_link_libraries(sqlite PRIVATE dl pthread)
endif ()
